import request from '@/utils/request'

// 文档列表
export function systemDocumentListApi(query) {
  return request({
    url: '/jsjx/userDocument/list',
    method: 'get',
    params: query
  })
};

// 文档新增
export function systemDocumentAddApi(data) {
  return request({
    url: '/jsjx/userDocument',
    method: 'post',
    data
  })
};

// 文档编辑
export function systemDocumentEditApi(data) {
  return request({
    url: '/jsjx/userDocument',
    method: 'put',
    data
  })
};

// 文档详情
export function systemDocumentByIdApi(wordId) {
  return request({
    url: `/jsjx/userDocument/${wordId}`,
    method: 'get',
  })
};

// 文档删除
export function systemDocumentDelApi(wordId) {
  return request({
    url: `/jsjx/userDocument/${wordId}`,
    method: 'delete',
  })
};